package com.xiaoyu.client.model.discovery;

import android.support.annotation.NonNull;

import java.util.Comparator;

/**
 * Created by jk on 2018/10/17.
 */
public class RankParam{
    /**
     * userid : 4
     * nickname : ykb_80943
     * userphoto : http://gwc.oss-cn-beijing.aliyuncs.com/2016-09-19_16:49:15.jpg
     * rankingcount : 4
     */

    private String userid;//用户id
    private String nickname;//用户昵称
    private String userphoto;//用户头像
    private String rankingcount;//帮助数量
    private String thinkcount;//被采纳数量
    private String focuson;//是否关注：是true，否：false

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getUserPhoto() {
        return userphoto;
    }

    public void setUserphoto(String userphoto) {
        this.userphoto = userphoto;
    }

    public String getRankingCount() {
        return rankingcount;
    }

    public void setRankingcount(String rankingcount) {
        this.rankingcount = rankingcount;
    }

    public String getThinkCount() {
        return thinkcount;
    }

    public void setThinkcount(String thinkcount) {
        this.thinkcount = thinkcount;
    }

    //TODO:接口中只有day字段中有focuson字段，week/month中都没有，问后台改接口
    public boolean isAttention() {
        if (focuson == null){
            return false;
        }else if (focuson.equals("true")){
            return true;
        }else if (focuson.equals("false")){
            return false;
        }
        else {
            return false;
        }
    }

    public void setFocuson(String focuson) {
        this.focuson = focuson;
    }
}
